#!/user/bin/python
# -*- coding: utf-8 -*-

# try:
#     f=open('test1.py', 'r')
#     print(f.read())
# finally:
#     if f:
#         f.close()
        
# with open('test2.py', 'r') as f:
#     for line in f.readlines():
        #print(line.strip())
        
# f = open('test1.py', 'r', encoding='gbk')
# f.read()

f = open('test1.py', 'w')
f.write('Hello World!')
f.close();